<?php

namespace App\Http\Controllers\Home;

use App\Models\SmsLog;

class SmsController extends BaseController
{

    public function __construct(SmsLog $smsLog)
    {
        parent::__construct();
        $this->smsLog = $smsLog;
    }

    // 获取短信验证码
    public function getSmsCaptcha()
    {
        $res = $this->smsLog->getSmsCaptcha(request());
        return ajax_return($res);
    }


}
